{assign var="imageSrc" value=UploadImageFacade::resolveImagePath($image->image_id, "600x600")}
<img src="{$imageSrc}" />
<hr />
<div class="photo-descr">
    <div class="photo-info">
        <p>Автор фотографии: <a href="/user/{$author->user_id}">{$author->surname} {$author->name}</a></p>
        <p>Голосов: {$image->votes}</p>        
    </div>
    {if (!Yii::app()->user->isGuest && !ContestFacade::isAlreadyVote($image->id, $this->getUserIdFromSession()))}
    <div class="photo-actions">
        <a href="/contest/vote/{$image->id}">Отдать голос</a>
    </div>
    {/if}
</div>

